import React from 'react';
import { Scrollbars } from 'react-custom-scrollbars';
 
export interface ScrollProps{
    style:any
}
    const CustomScrollbars: React.FC<ScrollProps> = (props: ScrollProps) =>{
        const handleScroll=(e:any)=>{
            console.log(e);
            
        }
 
    return (
      <Scrollbars
        onScroll={handleScroll}
        autoHide
        autoHideTimeout={1000}
        autoHideDuration={1000}
        autoHeight
        autoHeightMin={0}
        autoHeightMax={1000}
        thumbMinSize={30}
        universal={true}
        {...props}>
        </Scrollbars>
    );
  
}

export default CustomScrollbars;